<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>审题理解讲解</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
            color: white;
        }

        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .template-content {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            min-height: 600px;
        }

        .template-header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f1f3f4;
        }

        .template-header h3 {
            color: #333;
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        .template-header .error-type {
            background: #ffe6e6;
            color: #d63031;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            display: inline-block;
        }

        .concept-section {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            border-left: 4px solid #667eea;
        }

        .concept-title {
            font-size: 1.3rem;
            color: #333;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .concept-explanation {
            font-size: 1rem;
            line-height: 1.6;
            color: #555;
            margin-bottom: 15px;
        }

        .process-section {
            margin: 30px 0;
        }

        .process-title {
            font-size: 1.4rem;
            color: #333;
            margin-bottom: 20px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .process-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .process-step {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            position: relative;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .process-step:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            border-color: #667eea;
        }

        .step-number {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .step-title {
            font-size: 1.1rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
            margin-top: 10px;
        }

        .step-description {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.5;
        }

        .interactive-section {
            background: #e8f4fd;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
            border: 2px solid #b3d9ff;
        }

        .interactive-title {
            font-size: 1.2rem;
            color: #1e3d59;
            margin-bottom: 15px;
            text-align: center;
        }

        .task-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            margin: 20px 0;
        }

        .task-btn {
            padding: 10px 20px;
            border: 2px solid #667eea;
            background: white;
            color: #667eea;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .task-btn:hover {
            background: #667eea;
            color: white;
            transform: translateY(-2px);
        }

        .task-btn.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .feedback-section {
            margin-top: 20px;
            padding: 15px;
            border-radius: 8px;
            display: none;
            animation: slideIn 0.5s ease;
        }

        .feedback-section.show {
            display: block;
        }

        .feedback-section.success {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
        }

        .feedback-section.info {
            background: #d1ecf1;
            border: 1px solid #bee5eb;
            color: #0c5460;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2rem;
            }
            
            .process-steps {
                grid-template-columns: 1fr;
            }
            
            .task-buttons {
                flex-direction: column;
                align-items: center;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🔍 审题理解训练</h1>
            <p>任务识别 · 线索寻找 · 列式 · 解题</p>
        </div>

        <div class="template-content">
            <div class="template-header">
                <h3>📚 审题理解类模板</h3>
                <span class="error-type">comprehension（审题理解错误）</span>
            </div>

            <div class="concept-section">
                <div class="concept-title">🎯 核心概念</div>
                <div class="concept-explanation">{{.ExplanationText}}</div>
            </div>

            <div class="process-section">
                <div class="process-title">📋 解题步骤</div>
                <div class="process-steps">
                    <div class="process-step">
                        <div class="step-number">1</div>
                        <div class="step-title">🔍 任务识别</div>
                        <div class="step-description">仔细阅读题目，识别要求解决什么问题</div>
                    </div>
                    <div class="process-step">
                        <div class="step-number">2</div>
                        <div class="step-title">🔎 线索寻找</div>
                        <div class="step-description">找出题目中的关键信息和数量关系</div>
                    </div>
                    <div class="process-step">
                        <div class="step-number">3</div>
                        <div class="step-title">📝 列式</div>
                        <div class="step-description">根据数量关系列出算式或方程</div>
                    </div>
                    <div class="process-step">
                        <div class="step-number">4</div>
                        <div class="step-title">✅ 解题</div>
                        <div class="step-description">计算并验证答案的正确性</div>
                    </div>
                </div>
            </div>

            <div class="interactive-section">
                <div class="interactive-title">🎮 互动练习</div>
                <div class="task-buttons">
                    <button class="task-btn" onclick="selectTask('identify')">任务识别</button>
                    <button class="task-btn" onclick="selectTask('clues')">线索寻找</button>
                    <button class="task-btn" onclick="selectTask('formula')">列式</button>
                    <button class="task-btn" onclick="selectTask('solve')">解题</button>
                </div>
                <div class="feedback-section" id="feedbackSection">
                    <div id="feedbackContent"></div>
                </div>
            </div>
        </div>
    </div>

    <script>
        function selectTask(taskType) {
            // 移除所有按钮的active状态
            document.querySelectorAll('.task-btn').forEach(btn => {
                btn.classList.remove('active');
            });
            
            // 添加当前按钮的active状态
            event.target.classList.add('active');
            
            // 显示反馈
            const feedbackSection = document.getElementById('feedbackSection');
            const feedbackContent = document.getElementById('feedbackContent');
            
            const feedbacks = {
                'identify': {
                    type: 'info',
                    content: '💡 任务识别：仔细阅读题目，找出题目要求我们解决什么问题。注意关键词如"求"、"问"、"多少"等。'
                },
                'clues': {
                    type: 'info', 
                    content: '🔍 线索寻找：在题目中找出所有有用的信息，包括已知数量、未知数量、数量关系等。'
                },
                'formula': {
                    type: 'info',
                    content: '📝 列式：根据找到的数量关系，选择合适的运算方法列出算式或方程。'
                },
                'solve': {
                    type: 'success',
                    content: '✅ 解题：按照正确的运算顺序进行计算，并检查答案是否合理。'
                }
            };
            
            const feedback = feedbacks[taskType];
            feedbackSection.className = `feedback-section ${feedback.type} show`;
            feedbackContent.innerHTML = feedback.content;
        }
    </script>
</body>
</html>